package com.hm.service.config.zxing;

import com.google.zxing.qrcode.QRCodeWriter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class QRCodeWriterConfig {

    private static final Logger logger = LoggerFactory.getLogger(QRCodeWriterConfig.class);

    @Bean(name = {"QRCodeWriter"})
    public QRCodeWriter qrCodeWriter() {
        logger.warn("=======>QRCodeWriter初始化了<=======");
        return new QRCodeWriter();
    }
}
